package com.ruyuan.eshop.buyer.domain.request;

import com.ruyuan.eshop.framework.domain.request.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * <p>
 *
 * </p>
 *
 * @author pwd
 * @version 1.0
 */
@ApiModel
@Data
public class CartBuyRequest extends BaseRequest {

    @ApiModelProperty("产品ID")
    @NotNull(message = "产品id不能为空")
    private Long skuId;

    @ApiModelProperty("购买数量")
    @NotNull(message = "购买数量不能为空") @Min(value = 1, message = "购买数量必须大于0")
    private Integer num;

    @ApiModelProperty("促销活动ID")
    private Long activityId;

    @ApiModelProperty("促销类型")
    private String promotionType;

}